The development of several R packages for conducting network meta-analysis has enhanced the popularity of this evidence synthesis tool. The available R packages facilitate the implementation of most models to conduct and evaluate network meta-analysis and provide the necessary results, conforming to the PRISMA-NMA statement. The rnmamod package is a novel contribution to conducting aggregate network meta-analysis using Bayesian methods, as it allows addressing missing participants properly in all models, even if a handful of the included studies report this information. Importantly, rnmamod is the first R package to offer a rich, user-friendly visualisation toolkit that turns a “parameter-dense” output of network meta-analysis into several comprehensive graphs. Furthermore, the package functions on various models allow processing their output to create visualisations tailored to the user preferences. Therefore, rnmamod aids the thorough appraisal and interpretation of the results, the cross-comparison of different models and the manuscript preparation for journal submission.
Evidence-based medicine is the backbone of informed decisions for the benefit of the patients, stemming from a meticulous and judicious use of the available evidence, while taking into account also the clinical experience and patient values (Sackett et al. 1996). However, the medical community is faced daily with several intervention options and dosages, challenging the optimal practice of evidence-based medicine (Lee 2022). Systematic reviews with pairwise meta-analysis summarise the evidence of pairs of interventions, providing fragmented evidence that does not serve the clinical needs. Moreover, evidence in the comparability of different interventions at the trial level is also fragmented, as it is not feasible to compare all intervention options for a condition in one trial. These limitations led to the development and later establishment of network meta-analysis (NMA), also known as multiple treatment comparison, a new generation evidence synthesis tool (Salanti 2012). Network meta-analysis is an extension of pairwise meta-analysis for collecting all relevant pieces of evidence for a specific condition, patient population, and intervention options to provide coherent evidence for all possible intervention comparisons, and allow ordering the investigated interventions from the best to worst option for a specific outcome (Caldwell 2014). Indirect evidence (obtained from different sets of trials sharing a common comparator) plays a central role in the development and prominence of NMA.
Since the introduction of indirect evidence and early development of the relevant methodology (Higgins and Whitehead 1996; Bucher et al. 1997), the NMA framework has undergone substantial progress conceptually and methodologically. The fast-pace publications of relevant methodological articles and systematic reviews with NMA attest to the increasing popularity of NMA in the wide medical and evidence synthesis community (Efthimiou et al. 2016; Petropoulou et al. 2017). Needless to say that the availability of statistical analysis software is the driving force to the advances and wide dissemination of NMA. A review of the methodology and software for NMA (Efthimiou et al. 2016) listed several statistical software tools used to promote NMA, with the R software (R Core Team 2022) being the most popular to develop and compare methods for NMA, followed by Stata (StataCorp 2021) and SAS software (SAS Institute 2020).
In the last decade, there has been a raise in the R packages for NMA with various functionalities (Dewey and Viechtbauer 2022). These packages can be categorised by, among others:
Most packages fall into many categories. For instance, gemtc (van Valkenhoef and Kuiper 2021), probably the most popular R package for Bayesian NMA, allows both for one-stage and two-stage approaches using contrast-based modeling, has a wide scope, and deals with aggregate outcome data of many types. netmeta (Rücker et al. 2022) is currently the only R package developed exclusively for NMA in the frequentist framework based on the graph theory (Ruecker 2012), allows only for a two-stage approach (contrast-based modeling), has also a wide scope, and accommodates binary, rates, and continuous aggregate outcome data. On the other side, R packages, such as nmathresh (Phillippo et al. 2018), nmaplateplot (Wang et al. 2021), and nmarank (Nikolakopoulou et al. 2021) do not perform NMA, but use the NMA results (obtained using other R packages or statistical software tools) as an input to provide, for instance, decision-invariant bias-adjustment thresholds and intervals (nmathresh (Phillippo et al. 2018)), various league tables in heatplot style with all intervention comparisons (nmaplateplot (Wang et al. 2021)), or an intervention hierarchy approach tailored to the research question (nmarank (Nikolakopoulou et al. 2021)).
Due to the complexity and the wide scope of NMA, the researchers are faced with a large volume of results, necessary to understand the evidence base, assess the underlying assumptions, evaluate the quality of the estimated parameters (model diagnostics), and properly answer the research question, for instance, concerning the comparative effectiveness of the competing interventions and their hierarchy. To address the challenges associated with the best reporting of NMA results, the PRISMA-NMA statement (Hutton et al. 2015) was developed expanding on the PRISMA statement for pairwise meta-analysis (Page et al. 2021) to provide an extensive checklist with the essential items pertaining to the NMA results, ensuring completeness in the reporting of systematic reviews with multiple interventions. The R packages PRISMAstatement (Wasey 2019) and metagear (Lajeunesse 2021) facilitate the creation of the PRISMA flow chart and the process of article screening and data extraction, conforming to the PRISMA statement (Page et al. 2021), and are also relevant for systematic reviews with multiple interventions. The additional items in the PRISMA-NMA statement that apply to the NMA framework, such as presentation and summary of network geometry, inconsistency assessment, league tables and presentation of intervention hierarchy, are addressed in most R packages either in a targeted manner (e.g., nmaplateplot (Wang et al. 2021), and nmarank (Nikolakopoulou et al. 2021)) or collectively (bnma (Seo and Schmid 2022), netmeta (Rücker et al. 2022), gemtc (van Valkenhoef and Kuiper 2021), and pcnetmeta (Lin et al. 2017)).
Most methodological studies on and systematic reviews with NMA have implemented Bayesian methods (Efthimiou et al. 2016; Petropoulou et al. 2017). The advantages of the Bayesian framework (e.g., flexible modeling, allowance of uncertainty in all model parameters, incorporation of external relevant information and facilitation of probabilistic statements) (Sutton and Abrams 2001), in conjunction with the dominance of the BUGS software (Lunn et al. 2009) during the springtime of the NMA framework, may be attributed to the popularity of Bayesian NMA. The rise of R packages on Bayesian NMA also demonstrates the acclaim of Bayesian methods from the evidence synthesis community. The rest of the section pertains to R packages on Bayesian NMA published in the CRAN Task View ‘Meta-Analysis’ (Dewey and Viechtbauer 2022) that feature a wide methodological and reporting scope: bnma (Seo and Schmid 2022), gemtc (van Valkenhoef and Kuiper 2021), pcnetmeta (Lin et al. 2017), and rnmamod (Spineli 2022) (a recent novel contribution).
The R packages bnma (Seo and Schmid 2022), gemtc (van Valkenhoef and Kuiper 2021), and pcnetmeta (Lin et al. 2017) conduct hierarchical NMA using Markov chain Monte Carlo methods through the JAGS program (Plummer 2003). However, these packages differ in their methodological and reporting breadth to some extent: bnma (Seo and Schmid 2022) and gemtc (van Valkenhoef and Kuiper 2021) have a greater common basis on methods and outputs than pcnetmeta (Lin et al. 2017). This may be attributed to using the contrast-based modeling approach, which is the established approach to meta-analysis (trial-specific relative treatment effects, such as log odds ratio, are pooled across the trials), whilst pcnetmeta (Lin et al. 2017) considers the arm-based modeling approach, which deviates from the standard meta-analysis practice (Dias and Ades 2016) and is less widespread. Currently, the package pcnetmeta (Lin et al. 2017) does not contain any function to conduct inconsistency evaluation and meta-regression, is limited only to rankograms in terms of hierarchy measures (Salanti et al. 2022), and considers only the trace plots as a visual diagnostic tool. On the contrary, bnma (Seo and Schmid 2022) and gemtc (van Valkenhoef and Kuiper 2021) offer at least one method for inconsistency evaluation, allow conducting meta-regression and consider a wider variety of hierarchy measures and diagnostic tools. However, all three R packages provide a small-sized toolkit with functions regarding the presentation of the relative treatment effects: a league table for one outcome that appears only in the console, and a forest-plot or table on the relative treatment effects of all comparisons with the selected intervention.
Furthermore, other common features of the R packages bnma (Seo and Schmid 2022),
gemtc (van Valkenhoef and Kuiper 2021), and pcnetmeta (Lin et al. 2017) include: (i) the
undue reliance on the function print() (the results appear in the console) than
visualisation, and (ii) presenting the results mostly in isolation, restricting
the ability to gain further insights into the performance of the NMA models and
contextualise the results in the light of the strengths and limitations in the
analysis. The package
rnmamod provides ‘dynamic’ graphs by combining plots.
Some packages on interactive graphics include plotly (Sievert 2020) that interfaces with Javascript for web-based interactive graphics, crosstalk (Cheng and Sievert 2021) that specializes cross-linking elements across individual graphics. The recent R Journal paper tsibbletalk (Wang and Cook 2021) provides a good example of including interactive graphics into an article for the journal. It has both a set of linked plots, and also an animated gif example, illustrating linking between time series plots and feature summaries.
ToOoOlTiPs is a packages for customizing tooltips in interactive graphics, it features these possibilities.
The palmerpenguins data (Horst et al. 2020) features three penguin species which has a lovely illustration by Alison Horst in Figure 1.
Figure 1: Artwork by @allison_horst
Table 1 prints at the first few rows of the penguins data:
| species | island | bill_length_mm | bill_depth_mm | flipper_length_mm | body_mass_g | sex | year |
|---|---|---|---|---|---|---|---|
| Adelie | Torgersen | 39.1 | 18.7 | 181 | 3750 | male | 2007 |
| Adelie | Torgersen | 39.5 | 17.4 | 186 | 3800 | female | 2007 |
| Adelie | Torgersen | 40.3 | 18.0 | 195 | 3250 | female | 2007 |
| Adelie | Torgersen | NA | NA | NA | NA | NA | 2007 |
| Adelie | Torgersen | 36.7 | 19.3 | 193 | 3450 | female | 2007 |
| Adelie | Torgersen | 39.3 | 20.6 | 190 | 3650 | male | 2007 |
Figure 2 shows an interactive plot of the penguins data, made using the plotly package.
p <- penguins %>%
ggplot(aes(x = bill_depth_mm, y = bill_length_mm,
color = species)) +
geom_point()
ggplotly(p)
Figure 2: A basic interactive plot made with the plotly package on palmer penguin data. Three species of penguins are plotted with bill depth on the x-axis and bill length on the y-axis. When hovering on a point, a tooltip will show the exact value of the bill depth and length for that point, along with the species name.
We have displayed various tooltips that are available in the package ToOoOlTiPs.
netmeta, NMAoutlier, bnma, gemtc, metapack, multinma, NMADiagT, nmaINLA, pcnetmeta, nmaplateplot, nmarank, nmathresh, PRISMAstatement, metagear, rnmamod, plotly, crosstalk, tsibbletalk, palmerpenguins, ggplot2
MetaAnalysis, MissingData, Phylogenetics, Spatial, TeachingStatistics, TimeSeries, WebTechnologies
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Spineli, et al., "rnmamod: An R Package for Conducting Bayesian Network Meta-analysis with Missing Participants", The R Journal, 2022
BibTeX citation
@article{rnmamod-article,
author = {Spineli, Loukia M. and Kalyvas, Chrysostomos and Papadimitropoulou, Katerina},
title = {rnmamod: An R Package for Conducting Bayesian Network Meta-analysis with Missing Participants},
journal = {The R Journal},
year = {2022},
note = {https://doi.org/10.32614/rnmamod-article},
doi = {10.32614/rnmamod-article},
issn = {2073-4859},
pages = {1}
}